
/*
 *
 * @author Sebastian Węc <sebastian.wec@gmail.com>
 */
package thelife;

import java.util.Timer;
import javax.net.ssl.SSLEngineResult;

/**
 *
 * @author Paweł Młynarczyk <zwarios@gmail.com>
 * @author Sebastian Węc <sebastian.wec@gmail.com>
 */
public class TheLife {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        int h = 50;
        int w = 50;
        int period = 200; 
 
        Matrix m = new Matrix(h, w);
        /*for (int i = 0; i < h; i++) {
            for (int j = 0; j < w; j++) {
                if (Math.random() > 0.25) {
                    m.present[i][j] = true;
                } else {
                    m.present[i][j] = false;
                }
                m.present[i][j] = i < 50 ? true : false;
            }
        }*/
        Window win = new Window(m);
        
        win.setDefaultCloseOperation(Window.EXIT_ON_CLOSE);
        win.run();
        
//        TheTime tt = new TheTime(m, win);
//        new Timer().schedule(tt, 0, period);
//        tt.cancel();
    }
}
